import request from "../utils/request";

// 第三方登录
// 获取头部code
export let get_code=code=>request.get("/api/api/getCode",{params:{code}})

export let get_user_info=access_token=>request.get("/api/api/getUserInfo",{params:{access_token}})

// 上传图片 本地上传
// export let _upload=formData=>request.post("/api/api/upload?id=94d9250c7a6198c79d9a573f6fff3584",formData)

// oss 切片上传
export let _upload=formData=>request.post("/api/api/ossupload?id=94d9250c7a6198c79d9a573f6fff3584",formData)

// 发送邮箱
export let _sendMail=email=>request.post("/api/api/email",{
    id:"94d9250c7a6198c79d9a573f6fff3584",
    email
})

